<?php

namespace app\common\model;

use app\common\model\CommonModel;

class ShopDetailModel extends CommonModel{

    protected  $name = 'shop_detail';

    protected  $pk   = 'shop_id';

    public static function getById($where,$field='*')
    {
        $list = self::where($where)->field($field)->find();
        if($list) $list = $list->toArray();
        return $list;
    }

    public static function up($data,$where){
        $res=self::update($data,$where);
        return $res;
    }
    

}